import java.util.Vector;


public class PlayerNBoxes {
	
	private Position player;
	
	private Position[] boxes;
	
	//private Position[] targets;
	
	public PlayerNBoxes(Position initalPlayerPos, Vector<Position> inputBoxes) {
		player = initalPlayerPos;
		boxes = new Position[inputBoxes.size()];
		for ( int i = 0; i < inputBoxes.size(); i++){
			boxes[i] = inputBoxes.elementAt(i);
		}
	}

	
	public String toString(){
		String re = "player: "+player +"\n";
		re += "boxes: \n";
		for ( Position p : boxes){
			re+= p+"\n";
		}
		return re;
	}
	
	public Position getPlayer() {
		return player;
	}

	public void setPlayer(Position player) {
		this.player = player;
	}

	public Position[] getBoxes() {
		return boxes;
	}

	public void setBoxes(Position[] boxes) {
		this.boxes = boxes;
	}
}
